package com.ssyt.yt1.day4.oop;

/**
 * 匿名对象
 * 
 * @author Administrator
 *
 */
public class AnonymousObject {

	public String name;
	public int age;

	public static void main(String[] args) {
		AnonymousObject anonymousObject = new AnonymousObject();
		anonymousObject.name = "anonymous";
		anonymousObject.age = 12;

		// 匿名对象只能使用一次！
		new AnonymousObject().name = "anonymous";
	}
}
